﻿using KAs.Application.Contract.Dto.Interface;
using Test.Domain.Share;
using Microsoft.Extensions;

namespace Test.Application.Contract.Dto;

public class UserDto : IEntityDto<long>
{
    public string Account { get; set; }

    public string UserName { get; set; }

    public int Gender { get; set; }

    public string PhoneNumber { get; set; }

    public string Email { get; set; }

    public string GenderText
    {
        get
        {
            var @enum = (GenderEnum)Gender;
            return @enum.GetDescription();
        }
    }
}
